import request from '../../utils/request';

// public-question 管理相关 API

// 购买公开问题
export const purchaseQuestion = (data) => {
    return request({
        url: '/order/public-question/purchase',
        method: 'post',
        data: data,
    });
};

// 分页查询公开问题列表
export const getPublicQuestionPage = (params) => {
    return request({
        url: '/order/public-question/page',
        method: 'get',
        params: params,
    });
};

// 获取公开问题详情
export const getPublicQuestionDetail = (questionId, params) => {
    return request({
        url: `/order/public-question/detail/${questionId}`,
        method: 'get',
        params: params,
    });
};

